import request from '@/utils/request'

// 查询店铺流量消耗列表
export function listConsume(data) {
  return request({
    url: '/sys/sysShopDataConsume/selectAll',
    method: 'post',
    data: data
  })
}

// 查询店铺流量消耗详细
export function getConsume(id) {
  return request({
    url: '/sys/sysShopDataConsume/' + id,
    method: 'get'
  })
}

// 新增店铺流量消耗
export function addConsume(data) {
  return request({
    url: '/car/consume',
    method: 'post',
    data: data
  })
}

// 修改店铺流量消耗
export function updateConsume(data) {
  return request({
    url: '/sys/sysShopDataConsume/update',
    method: 'post',
    data: data
  })
}

// 删除店铺流量消耗
export function delConsume(data) {
  return request({
    url: '/sys/sysShopDataConsume/delete',
    method: 'post',
    data:data
  })
}
